package com.my.beans;

public class Department {
	private String dno;
	private String dname;
	private Teacher tea;
	private String place;
	private String phone;
	

	public Department(String dno, String dname,Teacher tea, String place,String phone ) {
		super();
		this.dno = dno;
		this.dname = dname;  
		this.tea = tea;
		this.place=place;
		this.phone = phone;
		
	}


	@Override
	public String toString() {
		return "Course [dno=" + dno +", dname=" + dname +  ", tea=" + tea + ", place=" + place + 
				",phone=" + phone + "]";
	}


	public String getDno() {
		return dno;
	}


	public void setDno(String dno) {
		this.dno = dno;
	}


	public String getDname() {
		return dname;
	}


	public void setDname(String dname) {
		this.dname = dname;
	}

	public Teacher getTea() {
		return tea;
	}


	public void setTea(Teacher tea) {
		this.tea = tea;
	}



	public String getPlace() {
		return place;
	}


	public void setPlace(String place) {
		this.place = place;
	}


	public String getPhone() {
		return phone;
	}


	public void setPhone(String phone) {
		this.phone = phone;
	}


	public Department(){}
}
